package com.yytek.tddb.api.domain;

import com.yytek.common.core.constant.Constants;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ClassDescription: tdEngine的基础实体类
 */
@Data
public class BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 数据库名称,默认值为常量
     */
    @NotBlank(message = "invalid operation: databaseName can not be empty")
    private String dataBaseName = Constants.TDDB_DATABASE_NAME;

    /**
     * 超级表名称
     */
    @NotBlank(message = "invalid operation: superTableName can not be empty")
    private String superTableName;
}
